import Layout from '../views/layout/Layout'
const _import = require('./_import_' + process.env.NODE_ENV)

const OrderMenu = {
  path: '/order',
  component: Layout,
  name: '订单管理',
  meta: {
    title: '订单管理',
    icon: 'chart'
  },
  icon: 'chart',
  authority: 'order',
  children: [
    {
      path: 'payOrder',
      component: _import('pay/order/payOrder'),
      name: '支付订单',
      meta: {
        title: '支付订单',
        icon: 'tab'
      },
      authority: 'payOrder'
    }, {
      path: 'withdrawOrder',
      component: _import('pay/order/withdrawOrder'),
      name: '提现订单',
      meta: {
        title: '提现订单',
        icon: 'tab'
      },
      authority: 'withdrawOrder'
    }]
}

export default OrderMenu
